{template 'common/header'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#FFFFFF{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{margin:3.8% 0 0 2.5%; overflow:hidden;}
	.box .box-item{float:left; display:block; text-align:center; text-decoration:none; width:31.1%; margin:0 2% 5% 0; height:90px; position:relative; color:#ffffff; overflow:hidden;}
	.box .box-item i{display:block; width:100%; height:65px; line-height:65px; font-size:35px; color:#FFF; overflow:hidden;}
	.box .box-item img{display:inline-block; height:65px; margin:0 auto;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']};display:block; font-size:14px; width:90%; margin:0 5%; height:25px; line-height:25px; text-align:center; overflow:hidden;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{loop $navs $nav}
	{php if($num == 0) $bg = '#92cf68';}
	{php if($num == 1) $bg = '#58b3df';}
	{php if($num == 2) $bg = '#f3c044';}
	{php if($num == 3) $bg = '#f96567';}
	{php if($num == 4) $bg = '#f6774a';}
	{php if($num == 5) $bg = '#c066a6';}
	<a href="{$nav['url']}" class="box-item" style="background:{$bg};">
		{if !empty($nav['icon'])}
		<img src="{$_W['attachurl']}{$nav['icon']}">
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
	</a>
	{php $num++; if($num > 5) $num = 0;}
	{/loop}
</div>
{template 'common/slide'}
{template 'common/footer'}